import request from '@/utils/request.js'

export const registerService = ({ username, password }) =>
  request.post('/api/account/register', { username, password })

export const loginService = ({ username, password }) =>
  request.post('/api/account/login', { username, password })

export const getInfoService = () => request.get('/api/account/info')
